<div id="mainContent">
	<p>&nbsp;</p>
	<section>
		<article class="posting">
		
		<div>
			<h4>Total Komisi Periode Ini</h4>
			<?php echo 'Rp. ' . (int) $comission['commission']; 
				if($comission['commission'] != 0) { ?>
				[<a href="<?php echo site_url('cashout/request'); ?>">Cashout Request</a>]
			<?php } ?>		
		</div>
		
		<div>
		
			<h4>Cashout History</h4>
			
			<?php if(count($list) > 0 && isset($list[0]))  { ?>
		
			<table>
				<tr>
					<td>Date Cashout Request</td>
					<td>Jumlah</td>
					<td>Status</td>
				</tr>
				<?php foreach($list as $row) {?>
				<tr>
					<td><?php echo $row['date_cashout_request'];?></td>
					<td>Rp. <?php echo $row['commission'];?></td>
					<td><?php $stat = ($row['status'] == '1') ?  'Pending' : 'Transferred'; echo $stat; ?></td>
				</tr>
				<?php } ?>
			</table>
			
			<div>
				<?php echo $paging; ?>
			</div>
		
			<?php } else { ?>
			
			Belum ada history cashout
			
			<?php } ?>
		
		</div>
		
		</article>
	</section>
		
</div>